<template>
  <div class="nav-bar">
    <div class="left">
      <slot name="left"></slot>
    </div>

    <div class="center">
      <slot name="center"></slot>
    </div>

    <div class="right">
      <slot name="right"></slot>
    </div>
  </div>
</template>

<script>
export default {
  name:'NavBar',

}
</script>

<style>
  .nav-bar {
    width: 100%;
    /* min-width: 320px; */
    /* max-width: 750px; */
    display: flex;
    position: absolute;
    top: 0;
    height: 46px;
    line-height: 46px;
    text-align: center;
    font-size: 20px;
    box-shadow: 0 5px 3px rgba(100,100,100,0.1);
    z-index: 999;
  }

  .left,.right {
    width: 60px;
  }

  .center {
    flex:1;
  }
</style>